Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add uniswapx #42

Merged
merged 3 commits into from
Apr 25, 2024
Merged

add uniswapx #42

merged 3 commits into from
Apr 25, 2024

Conversation

ngocthanh1389
Copy link
Member

@ngocthanh1389 ngocthanh1389 commented Apr 24, 2024

Add uniswapx parser
Limit re-parse error log

ErrInvalidOneInchFilledTopic = errors.New("invalid uniswapx order filled topic")
ErrUpdateOrder = errors.New("can't update order")

OrderTuple, _ = abi.NewType("tuple", "", []abi.ArgumentMarshaling{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore err somehow still not a good practice, how about init it in parser constructor?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@secmask error only happen when fail to create ABI type. But we create static type, so it never happen.
https://gist.github.com/fxfactorial/475bf4a50d0f9f6653b4dc4b610d86cd#file-example-go-L13
Anyway, I fixed it.

@ngocthanh1389 ngocthanh1389 requested a review from secmask April 25, 2024 08:58
@ngocthanh1389 ngocthanh1389 merged commit d20cda0 into main Apr 25, 2024
6 checks passed
@ngocthanh1389 ngocthanh1389 deleted the add_uniwswapx branch April 25, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants